﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SurvivalStrategy.Entities.ConversationData
{
    public class ConversationManager
    {
        private static List<Chat> Converstations = new List<Chat>();

        public static void AddConverstation(Entity e1, Entity e2)
        {
            Converstations.Add(new Chat(e1, e2));
        }

        public void Update()
        {
            for(int i = Converstations.Count-1; i>0; i--) 
            {
                if (Converstations[i].Update())
                    Converstations.Remove(Converstations[i]);
            }
        }
    }
}
